<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = "/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="/">
<!-- 下拉框 -->
<link rel="stylesheet" href="static/ace/css/chosen.css" />
<!-- jsp文件头和头部 -->
<%@ include file="../index/top.jsp"%>
</head>
<body class="no-skin">
	<!-- /section:basics/navbar.layout -->
	<div class="main-container" id="main-container">
		<!-- /section:basics/sidebar -->
		<div class="main-content">
			<div class="main-content-inner">
				<div class="page-content">
					<div class="row">
						<div class="col-xs-12">
								<form action="activityRuleType/${msg }.do" name="activityRuleTypeForm" id="activityRuleTypeForm" method="post">
									<div id="zhongxin" style="padding-top: 13px;">
									<input type="hidden" id="id" name="id" value="${id}" />
									<table id="table_report" class="table table-striped table-bordered table-hover">
										<tr>
											<td style="width:79px;text-align: right;padding-top: 13px;">选择活动:</td>
											<td id="juese">
											<select class="chosen-select form-control" name="activityId" id="activityId" style="vertical-align:top;" style="width:98%;" >
											<option value=""></option> 
											<c:forEach items="${activityList}" var="activity">
												<option value="${activity.id }" <c:if test="${activity.id == activityRuleType.activityId }">selected</c:if> >${activity.name }</option>
											</c:forEach>
											</select>
											</td>
										</tr> 
										<tr>
											<td style="width:79px;text-align: right;padding-top: 13px;">规则名称:</td> <!-- onchange="hasN()" -->
											<td><input type="text" name=name id="name" value="${activityRuleType.name}" maxlength="32" placeholder="这里输入活动说明" title="活动说明"  style="width:98%;"/></td>
										</tr>
									</table>
									<table id="table_report1" class="table table-striped table-bordered table-hover">										
										<tr>
											<td style="text-align: center;" colspan="10">
												<a class="btn btn-mini btn-primary" onclick="save();">保存</a>								
												<a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
											</td>
										</tr>
									</table>
									</div>
									<div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green"></h4></div>
								</form>
						</div>
						<!-- /.col -->
					</div>
					<!-- /.row -->
				</div>
				<!-- /.page-content -->
			</div>
		</div>
		<!-- /.main-content -->
	</div>
	<!-- /.main-container -->
	<!-- basic scripts -->
	<!-- 页面底部js¨ -->
	<%@ include file="../index/foot.jsp"%>
	<!-- ace scripts -->
	<script src="static/ace/js/ace/ace.js"></script>
	<!-- inline scripts related to this page -->
	<!-- 下拉框 -->
	<script src="static/ace/js/chosen.jquery.js"></script>
	<!--提示框-->
	<script type="text/javascript" src="static/js/jquery.tips.js"></script>
	
	<script type="text/javascript" src="static/js/common/file_upload.js"></script>
	<script type="text/javascript" src="plugins/kindeditor/kindeditor-all.js"></script>
	<script type="text/javascript" src="plugins/kindeditor/lang/zh_CN.js"></script>
</body>
<script type="text/javascript">
	$(top.hangge());
	//保存
	function save(){
		$("#activityRuleTypeForm").submit();
		$("#zhongxin").hide();
	    $("#zhongxin2").show(); 
	}

</script>
</html>